package com.CmJava.service;

import com.CmJava.entity.ResultEntity;
import com.CmJava.entity.comment.CommentRedis;

import javax.servlet.http.HttpServletRequest;

public interface CommentService {
    ResultEntity getCommentsMysql(String projectId);

    ResultEntity sendComment(String key, CommentRedis commentRedis, String projectId);

    ResultEntity getCommentsRedis(String commentKeys);

    ResultEntity thumbTa(String redisKey, String commentId, HttpServletRequest request);

    ResultEntity replyComment(String redisKey, String commentId, String comment, HttpServletRequest request);

    ResultEntity sendBlogComment(String key, CommentRedis commentRedis, String blogId);

    ResultEntity getCommentsMysqlBlog(String blogId);

    ResultEntity getCommentsRedisBlog(String commentKey);

    ResultEntity replyCommentBlog(String redisKey, String commentId, String comment, HttpServletRequest request);
}
